Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Test): O3-3755: Add Tests for stock item bulk import #215

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

TrevorAntony
Copy link
Contributor

@TrevorAntony TrevorAntony commented Sep 23, 2024

Summary

The tests should look out for if the files being imported is only a csv, is less than 2mbs as well as tests for the cancel button and upload stock items button, verify that the component renders with the initial state and UI elements are correctly displayed.
File selection: Test the file selection functionality to ensure that a file can be selected and stored in the state.
Upload confirmation without file ensure that the upload function does nothing if no file is selected.
Mock the UploadStockItems function to simulate a successful upload and ensure the success snackbar is shown and the modal is closed.
Mock the UploadStockItems function to simulate a failed upload and ensure the error snackbar is shown, and translation of the file

Related Issue

https://openmrs.atlassian.net/browse/O3-3755

@TrevorAntony
Copy link
Contributor Author

TrevorAntony commented Sep 26, 2024

@ODORA0 ODORA0 requested a review from jabahum October 1, 2024 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant